﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/WebMaster/MasterPage.master" Theme="WebMaster" CodeFile="SlideShow.aspx.cs" Inherits="webapp4U.UI.Marquee" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>
<%@ Register Src="~/WebMaster/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>

<asp:Content ContentPlaceHolderID="PageContent" runat="server">

<uc:Title runat="server" ResourceKey='Bosuutap_AddProduct'  />


  <table border="0" align="center">
    <tr>
        <td style="padding-top:8pt; color:Red; font-weight:bold; text-transform:uppercase" align="center">
            <asp:Label runat="server" ID="lblBosuutapName"></asp:Label>
        </td>
    </tr>
    <tr>
        <td align="center">
            <br />
            <asp:Label runat="server" ID="lblMsg" Font-Bold="true" ForeColor="blue"></asp:Label>
        </td>
    </tr>
     <tr>
        <td style="padding-top:1pt; line-height:20px;" class="text" align="center">
            <asp:Panel runat="server" ID="PanelAdd" Width="350px" GroupingText="Add Photo">
                <asp:ValidationSummary runat="server" ID="valSummary" ShowMessageBox="true" ShowSummary="false" />
                    <table align="center" cellpadding="3" cellspacing="0" border="0">
                        <tr style="padding-top:10pt;">
                            <td width="130" align="right">Hình ảnh :</td>
                            <td align="left">
                                <asp:FileUpload runat="server" ID="PhotoFile" CssClass="Textbox" Width="255" />
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="PhotoFile" ErrorMessage="Bạn chưa chọn hình" Display="None" />
                            </td>
                        </tr>
                         <tr>
	                         <td align="right">
		                         <asp:Literal runat="server" ID="lTitle" Text="Tên hình" meta:resourcekey="Title" /> : 
	                         </td>
	                         <td align="left">
		                         <asp:TextBox ID="txtTitle" MaxLength="200" runat="server" Width="250" />
	                         </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="2">
                                <asp:Button runat="server" ID="btSave" Text=" Save " OnClick="btSave_Click" />
                            </td>
                        </tr>
                    </table>
            </asp:Panel>
        </td>
    </tr>

    <tr>
        <td align="center">
           <asp:DataList ID="ItemsDataList" runat="server" Width="100%" 
              RepeatDirection="Horizontal" 
              EnableViewState="False" 
              CellPadding="10" 
              ItemStyle-HorizontalAlign="left"
              RepeatColumns="2">
                <ItemTemplate>
                    <table border="0" align="left"  style="table-layout:fixed;">
                        <tr>
                            <td class="BorderImage" bgcolor="white" width="250" height="250" align="center">
                                <img src="<%=Globals.ApplicationPath %>Bosuutap/Image.ashx?Size=M2&ImageUrl=<%# Eval("ImageUrl") %>" />
                            </td>
                        </tr>
                        <tr>
				            <td align="center" style="padding-top:3pt; padding-bottom:10px;" valign="top">
				                 <a href="?Action=Delete&SlideShowID=<%# Eval("SlideShowID") %>&BosuutapID=<%=Globals.GetIntFromQueryString("BosuutapID") %>" OnClick="return confirm('Bạn thật sự muốn xóa hình này?')">[xóa]</a>
				                 
				            </td>
				        </tr>
                    </table>
                </ItemTemplate>
              </asp:DataList>
        </td>
    </tr>
</table>                
</asp:Content>